grub2: If using --sysroot, run in chroot
authorColin Walters <walters@verbum.org>
Fri, 21 Nov 2014 16:37:25 +0000 (11:37 -0500)
committerColin Walters <walters@verbum.org>
Tue, 25 Nov 2014 17:24:06 +0000 (12:24 -0500)
commit12187994e217eead0c105028a74f02d8a308c0b8
tree3137adac6d631261f92b1f94783f81858656e104
parent97558276e4f855442337be01abc8f90cf0dd1810
grub2: If using --sysroot, run in chroot

In Anaconda, we're using "ostree admin --sysroot=/mnt/sysimage
instutil set-kargs", and it was working before, but newer versions of
lorax strip out /etc/system-release which grub2 wants.

That was wrong anyways as we want the /etc/system-release from the
target root.

(Man, grub2 sucks...give me a declarative config file format I can just
 write)

https://bugzilla.gnome.org/show_bug.cgi?id=740697
src/libostree/ostree-bootloader-grub2.c